# -*- coding:utf-8 -*-
from PySide6.QtWidgets import (QHBoxLayout, QLineEdit, QPushButton, QGroupBox)

class ExcelGroup(QGroupBox):
    def __init__(self):
        """
        Excel文件路径设置
        """
        super().__init__("Excel目录设置")
        excel_layout = QHBoxLayout()
        self.excel_path_input = QLineEdit()
        self.excel_path_input.setPlaceholderText("Excel文件目录...")
        self.excel_path_input.setReadOnly(True)
        excel_layout.addWidget(self.excel_path_input, 7)

        self.excel_btn_choose = QPushButton("选择目录")
        excel_layout.addWidget(self.excel_btn_choose)
        self.setLayout(excel_layout)